package com.example.demo.sevice.impl;

import com.example.demo.bean.Medical;

import com.example.demo.dao.MedicalDao;

import com.example.demo.sevice.MedicalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MedicalServiceImpl implements MedicalService {
    @Autowired
    private MedicalDao medicalDao;

    /*查询*/
    @Override
    public List<Medical> medical() {
        return medicalDao.medical();
    }

    ///*新增*//*
    @Override
    public void addMedical(String type) {
        medicalDao.addMedical(type);
    }

    /*删除数据*/
    @Override
    public void deleteMedical(String medicalId) {
        medicalDao.deleteMedical(medicalId);
    }

    /*修改数据*/
    @Override
    public void updateMedical(Medical medical) {
        medicalDao.updateMedical(medical);
    }
}
